package com.wayne.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User extends Model<User> {
  @TableId(type = IdType.AUTO) //指定id类型为自增⻓
  private Long id;
  private String name;
  private Integer age;
  @TableField(fill = FieldFill.INSERT)
  private String email;
  @Version
  private Integer version;
  @TableLogic
  private Integer deleted;
}
